import 'package:get/get.dart';

class PhotoViewLogic extends GetxController {
  late int initialIndex = 0; //初始index
  late int title;
  late List<String> photoList;
  late int index;
  @override
  void onInit() {
    super.onInit();
    initialIndex = Get.arguments['index'];
    photoList = Get.arguments['photoList'];
    title = initialIndex + 1;
  }

  onPageChanged(int index) {
    title = index + 1;
    update();
  }
}
